import request from '@/utils/request';


// 获取试卷列表
export function queryPapersList(params) {
	return request({
		method: 'get',
		url: '/testPaper/query',
		params
	});
}

// 新增试卷
export function addedPapers(data) {
	return request({
		method: 'post',
		url: '/testPaper/add',
		data
	});
}

// 修改试卷
export function updatePapers(data) {
	return request({
		method: 'post',
		url: '/testPaper/update',
		data
	});
}

// 删除试卷
export function deletePapers(id) {
	return request({
		method: 'get',
		url: '/testPaper/delete/' + id
	});
}

// 获取试卷详情
export function queryPapers(id) {
	return request({
		method: 'get',
		url: '/testPaper/query/' + id
	});
}